<!--ZP: DESDE UNA VENANA MODAL-->
<div class="span3" align="right" >
        <!-- Button to trigger modal -->
        <a data-toggle="modal" href="#addRol" class="btn btn-small btn-inverse" role="button"  >
            <i class="icon-plus-sign icon-white"></i> Nuevo Rol
            
        </a>
        <!-- Modal -->

</div>
<div id="addRol" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
                    
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Nuevo Rol</h3>
    </div>
    <div class="modal-body">
        <?php
        //var_dump($project);
        

        echo $this->Form->create('Role', array('url' => '../projects/addRole', 'class'=>'form-horizontal'));
        ?> 
        <fieldset> 

        <?php 
            echo $this->Form->input('project_id',array('type' => 'hidden','value'=>$project['Project']['id']));
            $optionsLabel = array('class' => 'control-label','text'=>'Nombre');
            $options = array('div' => 'control-group','label'=>$optionsLabel,'class'=>'controls');
            echo $this->Form->input('description',$options);

        ?>
        </fieldset>

    </div>
    <div class="modal-footer">
        <div class="row-fluid " >
            <div class="span12">
                <div class="span8">                      
                </div>
                <div class="span2">
                    <button class="btn" data-dismiss="modal">Cancelar</button>
                </div>
                <div class="span2">
                    <?php
                    $optionsBtn = array('label' => 'Guardar','class' => 'btn');
                   
                    echo $this->Form->end($optionsBtn);
                    
                    ?>
                    
                </div>
            </div>
        </div>
    </div>
</div>